<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>草稿箱详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link th:href="@{/res/notice/lib/weui.min.css}" rel="stylesheet"/>
    <link th:href="@{/res/notice/css/jquery-weui.css}" rel="stylesheet"/>
    <link th:href="@{/res/notice/css/font-awesome.css?v=4.4.0}" rel="stylesheet"/>
    <link th:href="@{/res/notice/css/common.css}" rel="stylesheet"/>
</head>
<body class="bgline3 pb70">

<header class='demos-header bgwhite mb5 ptb10'>
    <h3 class="tc blue" th:text="${notice.noticeTheme}"></h3>
</header>
<article class="weui-article bgwhite">
    <!--通知类型-->
    <p>
        <span class="bold">通知类型：</span>
        <small th:text="${@dict.getValueByTableAndKey('sys_notice_type',notice.noticeType)}"></small>
    </p>
    <!--时间-->
    <p>
        <span class="bold">时间：</span>
        <small th:text="${#dates.format(notice.noticeSendingTime,'yyyy-MM-dd HH:mm')}"></small>
    </p>
    <!--发件人-->
    <p>
        <span class="bold">发件人：</span>
        <small th:text="${@dingUser.getNoticeSenderValue(notice.noticeSender)}"></small>
    </p>
    <!--署名-->
    <p>
        <span class="bold">署名：</span>
        <small th:text="${notice.noticeSignature}"></small>
    </p>
    <!--附件-->
    <p id="down-button">
        <span class="bold">附件：</span>
<!--        <small th:text="${file.fileName}"></small>-->
        <a class="blue ml5 ft12 bold italic" th:href="@{/sys/common/view/} + ${file.fileRoute}">
            <i class="fa fa-mouse-pointer" th:text="${file.fileName}"></i>
        </a>
    </p>
    <div class="hr-line-dashed"></div>
    <!--内容-->
    <!--<p>
        <span class="bold">内容：</span>
        <small th:text="${notice.noticeContent}"></small>
    </p>-->
</article>
<!--<div class="bgpart w100 ptb10 fixed btm0 topshadow">
    <a class="weui-btn weui-btn_primary mlr10 sendOutBtn" href="javascript:" onclick="sendCheck()">发送</a>
</div>-->

<script th:src="@{/res/notice/lib/jquery-2.1.4.js}"></script>
<script th:src="@{/res/notice/js/jquery-weui.js}"></script>
<script th:src="@{/res/ajax/libs/layer/layer.min.js}"></script>
<script th:inline="javascript">
    var token = [[${token}]];
    var noticeId = [[${notice.noticeId}]];
    var fileRoute = [[${file.fileRoute}]];
    window.onload = function () {
        if (!fileRoute) {
            document.getElementById("down-button").style.display = "none";
        }//判断有无附件，选择是否显示
    };


    function sendCheck() {
        var url = "/mobile/notice/sendCheck/" + noticeId;
        createMenuItem(url, "发通知");
    }


</script>

</body>
</html>
